package com.ruoyi.evaluate.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 【评价】对象 evaluate
 *
 * @author ruoyi
 * @date 2025-07-08
 */
@ApiModel(description = "评价信息实体")
public class Evaluate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评价ID", example = "评价ID")
    private Long id;

    @ApiModelProperty(value = "评级", example = "评级")
    @Excel(name = "评级")
    private Integer rating;

    @ApiModelProperty(value = "评价内容", example = "评价内容")
    @Excel(name = "评价")
    private String evaluate;

    @ApiModelProperty(value = "评价图片", example = "评价图片")
    @Excel(name = "图片")
    private String image;

    @ApiModelProperty(value = "来自用户评价ID", example = "来自用户评价ID")
    @Excel(name = "来自用户评价id")
    private String fromUserId;

    @ApiModelProperty(value = "所评价的专家ID", example = "所评价的专家ID")
    @Excel(name = "所评价的专家id")
    private String toUserId;

    @ApiModelProperty(value = "订单ID", example = "订单ID")
    @Excel(name = "订单id")
    private String orderId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setRating(Integer rating)
    {
        this.rating = rating;
    }

    public Integer getRating()
    {
        return rating;
    }

    public void setEvaluate(String evaluate)
    {
        this.evaluate = evaluate;
    }

    public String getEvaluate()
    {
        return evaluate;
    }

    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }

    public void setFromUserId(String fromUserId)
    {
        this.fromUserId = fromUserId;
    }

    public String getFromUserId()
    {
        return fromUserId;
    }

    public void setToUserId(String toUserId)
    {
        this.toUserId = toUserId;
    }

    public String getToUserId()
    {
        return toUserId;
    }

    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderId()
    {
        return orderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("rating", getRating())
                .append("evaluate", getEvaluate())
                .append("image", getImage())
                .append("createTime", getCreateTime())
                .append("fromUserId", getFromUserId())
                .append("toUserId", getToUserId())
                .append("orderId", getOrderId())
                .toString();
    }
}
